package com.neu.service.klz;

import com.neu.dao.klz.GoodDaoImpl;

import java.util.Map;

public class InsertService {
    private GoodDaoImpl goodDao;
    public InsertService(){
        goodDao=new GoodDaoImpl();
    }
    public boolean dosave(String k_id,String e_id,String g_name,String g_info,String g_key,
                          String g_date,String g_now,String g_num,String g_img){
        boolean flag=false;
        try {
            int row=goodDao.save(k_id,e_id,g_name,g_info,g_key,g_date,g_now,g_num,g_img);
            if (row>0){
                flag=true;
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        return flag;
    }

}
